package com.softline.documentsmall.service;

import com.softline.documentsmall.entity.EntryDetails;
import com.softline.documentsmall.ret.ReturnVO;


/**
 * 条目记录主表
 * @author zhongweicheng
 * @date 2020/9/9 9:49
 */
public interface EntryDetailService {

    ReturnVO findByParams(EntryDetails entryDetails);

    ReturnVO updateById(EntryDetails entryDetails);

    ReturnVO softDeleteById(Integer id);

    ReturnVO insertEntryDetails(EntryDetails entryDetails);

    EntryDetails findByDictionaryIdLanguageTitle(Integer dictionaryId,String language,String title);

    /**
     * 触发所有词条新增术语解读目录
     * @return
     */
    void insertBatch();

    /**
     * 根据术语ID，语言类型获取sort+1,做新增时用
     * @param dictionaryId
     * @param language
     * @return
     */
    Integer getMaxSort(Integer dictionaryId,String language);
}
